package com.dubbo.customer.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@ConfigurationProperties(prefix = "dubbo")
@Component
public class DubboConfig {

  /**
   * 应用名称
   */
  private String applicationName;
  /**
   * 应用负责人
   */
  private String applicationOwner;
  /**
   * 应用版本
   */
  private String applicationVersion;
  /**
   * 注册中心地址
   */
  private String registryAddress;
  /**
   * 注册中心使用文件缓存注册中心地址列表
   */
  private String registryFile;
  
  /**
   * 用dubbo协议在20880端口暴露服务
   */
  private Integer protocolPort;

  public String getRegistryAddress() {
		return registryAddress;
	}

	public void setRegistryAddress(String registryAddress) {
		this.registryAddress = registryAddress;
	}

	public String getApplicationName() {
    return applicationName;
  }

  public void setApplicationName(String applicationName) {
    this.applicationName = applicationName;
  }

  public String getApplicationOwner() {
    return applicationOwner;
  }

  public void setApplicationOwner(String applicationOwner) {
    this.applicationOwner = applicationOwner;
  }

  public String getApplicationVersion() {
    return applicationVersion;
  }

  public void setApplicationVersion(String applicationVersion) {
    this.applicationVersion = applicationVersion;
  }

	public String getRegistryFile() {
		return registryFile;
	}

	public void setRegistryFile(String registryFile) {
		this.registryFile = registryFile;
	}

	public Integer getProtocolPort() {
		return protocolPort;
	}

	public void setProtocolPort(Integer protocolPort) {
		this.protocolPort = protocolPort;
	}

}
